<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>库存管理系统</title>
	</head>
	<link rel="shortcut icon" href="img/favicon.ico"/>
	<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
	<link rel="stylesheet" href="css/bootstrap/bootstrap-addtabs.css" />
	<link rel="stylesheet" href="css/common.css" />
	<link rel="stylesheet" href="css/frame.css" />
	<style>
		*{
			margin:0;
			padding:0;
		}
		ul li{
			list-style:none;
		}
	</style>
	<body>
		<div id='centerBody'>
			<header>
				<ul class='headUl'>
					<li class='headUlli_logo'><img src="img/frame/logo.jpg"/></li>
					<li class='headUlli_line'></li>
					<li class='headUlli_text'>库存管理系统</li>
					<li class='headUlli_line'></li>
					<li class='headUlli_block'></li>
					<li class='headUlli_line'></li>
					<li class='headUlli_mess'><!-- <span class='userPic'></span> --><span class='popular'>欢迎 &nbsp;<span class='user'>${session.name}</span></br><span class='mess'>您有<span class='messAmount'>0</span>条新消息 </span></span>
						<span class='iconfont messIconShow'>&#xe65a;</span>
						<ul class='messages'>				
							<div class="topbar admin-header">
								<div class="topbar-collapse">					
									<ul role="group" aria-label="...">
										<div><span class='ticketingOrderMessage' data-addtab='8' url='ak/orderManage.html?mess=ticketingOrderMessage'>待出票订单 <span class="orderTicket">(0)</span></span></div>
										<div><span class='documentAuditMessage' data-addtab='documentQuery' url='ak/documentQuery.html?mess=documentAuditMessage'>待审核合同 <span class="contractAudit">(0)</span></span></div>
										<div><span class='connectAuditMessage' data-addtab='8' url='ak/orderManage.html?mess=connectAuditMessage'>联运待审核 <span class="connectAudit">(0)</span></span></div>
										<div><span class='upSeatAuditMessage' data-addtab='8' url='ak/orderManage.html?mess=upSeatAuditMessage'>升舱待审核 <span class="exchAudit">(0)</span></span></div>
										<div><span class='addSeatAuditMessage' data-addtab='8' url='ak/orderManage.html?mess=addSeatAuditMessage'>追位待审核 <span class="orderSeatAddAudit">(0)</span></span></div>
									</ul>
								</div>
							</div>									
						</ul>
					</li>
					<li class='headUlli_line'></li>					
					<li class='headUlli_exit'><a href="javascript:void(0)" class="logout">退出 </a><span class='iconfont logoutIcon'>&#xe6a3;</span></li>					
				</ul>
			</header>
			<div id='main'>
				<div class='LevelMenu_1'>
				<div class="topbar admin-header">
					<div class="topbar-collapse">					
						<ul class='LevelMenu_1_Ul' role="group" aria-label="...">
							
						</ul>
					</div>
				</div>					
				</div>	
				<div class='main_right'>																					
					<div class='line'></div>
					<div style='height:14px'></div>
					<div class='content'>
						<div style='padding-left:14px;' id="tabs">
				        <!-- Nav tabs -->
				        <ul class="nav nav-tabs" role="tablist">
				        	<span class='backAndReflesh'>
						          <span class='reflash iconfont'>&#xe600;</span> 
						    </span> 
				            <li role="presentation" class="active">
				                <a href="#home" aria-controls="home" role="tab" data-toggle="tab">Home</a>
				            </li>
				           
				            
				        </ul>
				        <!-- Tab panes -->
				        <div class="tab-content">
				            <div role="tabpanel" class="tab-pane active" id="home">
				              	<div class='Home'>
				              		<div class='home_'>
				              			<div class='home_1'></div>
				              		</div>				              		
				              	</div>
				            </div>
				            
				        </div>

    					</div>
					</div>
				</div>	
				
					
		</div>
		
		
		<script type="text/javascript" src="js/jquery-1.12.4.js" ></script>
		<script type="text/javascript" src="js/bootstrap/bootstrap.min.js" ></script>
		<script type="text/javascript" src="js/bootstrap/bootstrap-addtabs.js" ></script>
		<script type="text/javascript" src="layer-v2.4/layer/layer.js" ></script>
		<script type="text/javascript" src="js/common.js" ></script>
		
    	
		<script> 
			//刷新页面
			$(".reflash").bind('click',function(){
				var url = $("li[class=active]").attr('aria-url');
				var id = $("li[class=active]").attr("id").substring(8);
				Addtabs.add({'id':id,'url':url});
		        $('#popMenu').fadeOut();
			})
			//权限管理
			var innerHtml = "";
			<#if resList?seq_contains("flight")>
				var flightStr = "<li name='flight' class='li'><span class='iconfont'>&#xe608;</span><br/>航班管理<div class='menu_'> <ul>";
				<#if resList?seq_contains("ak/flightManage.html")>
					flightStr += "<li data-addtab='1' url='ak/flightManage.html'>航班计划</li>"
				</#if>
				<#if resList?seq_contains("ak/flightMessage.html")>
					flightStr += "<li data-addtab='2' url='ak/flightMessage.html'>航班信息</li>"
				</#if>
				<#if resList?seq_contains("ak/flightSale.html")>
					flightStr += "<li data-addtab='211' url='ak/flightSale.html'>航班销售</li>"
				</#if>
				flightStr += "</ul></div></li>";
				innerHtml +=flightStr;
			</#if>
			
												
			<#if resList?seq_contains("price")>
				var priceStr = "<li name='price' class='li'><span class='iconfont'>&#xe60a;</span><br/>运价管理<div class='menu_'><ul>";
				<#if resList?seq_contains("ak/basicPrice.html")>
					priceStr += "<li data-addtab='6' url='ak/basicPrice.html'>基础运价</li>"
				</#if>
				<#if resList?seq_contains("ak/pricePlan.html")>
					priceStr += "<li data-addtab='7' url='ak/pricePlan.html'>运价方案</li>"
				</#if>
				priceStr += "</ul></div></li>";
				innerHtml +=priceStr;
			</#if>
			
			
			
			<#if resList?seq_contains("inventory")>
				var invStr = "<li name='inventory' class='li'><span class='iconfont'>&#xe60b;</span><br/>产品管理<div class='menu_'><ul>";
				<#if resList?seq_contains("ak/peoplePredetermine.html")>
					invStr+= "<li data-addtab='31' url='ak/peoplePredetermine.html'>散客查询</li>"
				</#if> 
				<#if resList?seq_contains("ak/cutPredetermine.html")>
					invStr+= "<li data-addtab='30' url='ak/cutPredetermine.html'>切位查询</li>"
				</#if>
				<#if resList?seq_contains("ak/productList.html")>
					invStr+= "<li data-addtab='5' url='ak/productList.html'>产品管理</li>"
				</#if>
				invStr += "</ul></div></li>";
				innerHtml +=invStr;
			</#if>

			<#if resList?seq_contains("order")>
				var orderStr = "<li name='order' class='li'><span class='iconfont'>&#xe66f;</span><br/>订单管理<div class='menu_'><ul>";		
				<#if resList?seq_contains("ak/documentQuery.html")>
					orderStr += "<li data-addtab='documentQuery' url='ak/documentQuery.html'>合同查询</li>"
				</#if>
				<#if resList?seq_contains("ak/orderManage.html")>
					orderStr += "<li data-addtab='8' url='ak/orderManage.html'>订单查询</li>"
				</#if>
				<#if resList?seq_contains("ak/conflictOrder.html")>
					orderStr += "<li data-addtab='conflictOrder' url='ak/conflictOrder.html'>冲突订单查询</li>"
				</#if>
				
				orderStr += "</ul></div></li>";
				innerHtml +=orderStr;
			</#if>
			
			<#if resList?seq_contains("tickets")>
				var ticketStr = "<li name='tickets' class='li'><span class='iconfont'>&#xe659;</span><br/>票证管理<div class='menu_'><ul>";
				<#if resList?seq_contains("ak/ticketGenerated.html")>
					ticketStr += "<li data-addtab='10' url='ak/ticketGenerated.html'>票号生成</li>"
				</#if>
				<#if resList?seq_contains("ak/importTickets.html")>
					ticketStr += "<li data-addtab='11' url='ak/importTickets.html'>导入票号</li>"
				</#if>
				ticketStr += "</ul></div></li>";
				innerHtml +=ticketStr;
			</#if>
		
			<#if resList?seq_contains("system")>
				var systemStr = "<li name='system' class='li'><span class='iconfont'>&#xe607;</span><br/>系统管理<div class='menu_' id='sys'><ul>";
				<#if resList?seq_contains("ak/userManage.html")>
					systemStr += "<li data-addtab='14' url='ak/userManage.html'>用户管理</li>"
				</#if>
				<#if resList?seq_contains("ak/roleManage.html")>
					systemStr += '<li data-addtab="15" url="ak/roleManage.html">角色管理</li>'
				</#if>
				<#if resList?seq_contains("ak/resourceManage.html")>
					systemStr += '<li data-addtab="16" url="ak/resourceManage.html">资源管理</li>'
				</#if>
				<#if resList?seq_contains("ak/flightPlanChangeLog.html")>
					systemStr += '<li data-addtab="17" url="ak/flightPlanChangeLog.html">航班计划修改记录查询</li>'
				</#if>
				<#if resList?seq_contains("ak/airportMaintaince.html")>
				systemStr += '<li data-addtab="18" url="ak/airportMaintaince.html">机场维护</li>'
				</#if>
				<#if resList?seq_contains("ak/aircraftMaintaince.html")>
					systemStr += '<li data-addtab="19" url="ak/aircraftMaintaince.html">机型维护</li>'
				</#if>
				<#if resList?seq_contains("ak/airlineMessage.html")>
					systemStr += '<li data-addtab="airlineMessage" url="ak/airlineMessage.html">航司信息</li>'
				</#if>
				systemStr += "</ul></div></li>";
				innerHtml +=systemStr;
			</#if>

			
			<#if resList?seq_contains("install")>
				var install = "<li name='install' class='li'><span class='iconfont'>&#xe639;</span><br/>设置<div class='menu_'><ul>";
				<#if resList?seq_contains("ak/personInfo.html")>
					install += "<li data-addtab='20' url='ak/personInfo.html'>个人信息</li>"
				</#if>
				<#if resList?seq_contains("ak/modifyPaw.html")>
					install += '<li data-addtab="21" url="ak/modifyPaw.html">密码修改</li>'
				</#if>
				
				install += "</ul></div></li>";
				innerHtml +=install;
			</#if>
			$(".LevelMenu_1_Ul").append(innerHtml);
		</script>
		<script type="text/javascript" src="js/echarts.js"></script>
		<script type="text/javascript" src="js/world.js"></script>
		<script type="text/javascript" src="js/macarons.js"></script> 		
		<script type="text/javascript" src="js/sockjs.min.js" ></script>
		<script type="text/javascript" src="js/stomp.min.js" ></script>
		<script type="text/javascript" src="js/frame.js" ></script>
	</body>
</html>
